<!DOCTYPE html>
<html lang="zh-cn">
<head prefix="og: http://ogp.me/ns#">
  <meta charset="utf-8">
  <title>starRTC文档</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Canonical links -->
  <link rel="canonical" href="https://starrtc.gitee.io/zh-cn/docs/aec-channel.html">
  <!-- Alternative links -->
  
    
      <link rel="alternative" hreflang="en" href="https://starrtc.gitee.io/docs/aec-channel.html">
    
      <link rel="alternative" hreflang="zh-cn" href="https://starrtc.gitee.io/zh-cn/docs/aec-channel.html">
    
  
  <!-- Icon -->
  <link rel="apple-touch-icon" sizes="57x57" href="/icon/apple-touch-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="114x114" href="/icon/apple-touch-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="72x72" href="/icon/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="144x144" href="/icon/apple-touch-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="60x60" href="/icon/apple-touch-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="120x120" href="/icon/apple-touch-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="76x76" href="/icon/apple-touch-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="152x152" href="/icon/apple-touch-icon-152x152.png">
  <link rel="icon" type="image/png" href="/icon/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="/icon/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="/icon/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="/icon/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="/icon/favicon-32x32.png" sizes="32x32">
  <meta name="msapplication-TileColor" content="#2f83cd">
  <meta name="msapplication-TileImage" content="/icon/mstile-144x144.png">
  <!-- CSS -->
  <!-- build:css build/css/navy.css -->
  <link rel="stylesheet" href="/css/navy.css">
  <!-- endbuild -->
  <link href="https://starrtc.gitee.io/googleapis.css" rel="stylesheet" type="text/css">
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> 
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css">
  <!-- RSS -->
  <link rel="alternate" href="/atom.xml" title="starRTC文档">
  <!-- Open Graph -->
  <meta name="description" content="流事件通知与音视频channel相关的事件通知 1 创建 GLOBAL_PUBLIC CHANNEL&amp;#123;&quot;action&quot;:&quot;AEC_LIVE_CREATE_CHANNEL_GLOBAL_PUBLIC&quot;,&quot;userId&quot;:&quot;xxx&quot;,&quot;roomId&quot;:&quot;xxx&quot;,&quot;channelId&quot;:&quot;xxx&quot;,&quot;conCurrentNumber&quot;:&quot;200&quot;,&quot;extra&quot; : &quot;xxx&quot;&amp;#125;/">
<meta property="og:type" content="website">
<meta property="og:title" content="starRTC文档">
<meta property="og:url" content="https://starrtc.gitee.io/zh-cn/docs/aec-channel.html">
<meta property="og:site_name" content="starRTC文档">
<meta property="og:description" content="流事件通知与音视频channel相关的事件通知 1 创建 GLOBAL_PUBLIC CHANNEL&amp;#123;&quot;action&quot;:&quot;AEC_LIVE_CREATE_CHANNEL_GLOBAL_PUBLIC&quot;,&quot;userId&quot;:&quot;xxx&quot;,&quot;roomId&quot;:&quot;xxx&quot;,&quot;channelId&quot;:&quot;xxx&quot;,&quot;conCurrentNumber&quot;:&quot;200&quot;,&quot;extra&quot; : &quot;xxx&quot;&amp;#125;/">
<meta property="og:locale" content="zh-cn">
<meta property="og:updated_time" content="2020-09-06T00:27:31.361Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="starRTC文档">
<meta name="twitter:description" content="流事件通知与音视频channel相关的事件通知 1 创建 GLOBAL_PUBLIC CHANNEL&amp;#123;&quot;action&quot;:&quot;AEC_LIVE_CREATE_CHANNEL_GLOBAL_PUBLIC&quot;,&quot;userId&quot;:&quot;xxx&quot;,&quot;roomId&quot;:&quot;xxx&quot;,&quot;channelId&quot;:&quot;xxx&quot;,&quot;conCurrentNumber&quot;:&quot;200&quot;,&quot;extra&quot; : &quot;xxx&quot;&amp;#125;/">
<meta name="twitter:site" content="hexojs">
<meta property="fb:admins" content="100000247608790">
  <!-- Google Analytics -->
  
</head>

<body>
  <div id="container">
    <header id="header" class="wrapper">
  <div id="header-inner" class="inner">
    <h1 id="logo-wrap">
      
      <a href="https://starrtc.gitee.io/" id="logo">starRTC</a>
    </h1>
    <nav id="main-nav">
      <a href="https://starrtc.gitee.io/" class="main-nav-link">官网</a><a href="https://blog.starRTC.com" class="main-nav-link">博客</a><a href="https://github.com/starrtc/android-demo/issues" class="main-nav-link">论坛</a><a href="/zh-cn/docs/" class="main-nav-link">文档</a><a href="/zh-cn/download/" class="main-nav-link">下载</a><a href="/zh-cn/contact/" class="main-nav-link">联系我们</a>
      
    </nav>
    <div id="lang-select-wrap">
      <label id="lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></label>
      <select id="lang-select" data-canonical="docs/aec-channel.html">
        
          <option value="en">English</option>
        
          <option value="zh-cn" selected>简体中文</option>
        
      </select>
    </div>
    <a id="mobile-nav-toggle">
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
    </a>
  </div>
</header>

    <div id="content-wrap">
  <div id="content" class="wrapper">
    <div id="content-inner">
      <article class="article-container" itemscope itemtype="http://schema.org/Article">
        <div class="article-inner">
          <div class="article">
            <div class="inner">
              <header class="article-header">
                <h1 class="article-title" itemprop="name"></h1>
                <a href="https://github.com/starRTC/docs/edit/master/zh-cn/docs/aec-channel.md" class="article-edit-link" title="改进本文"><i class="fa fa-pencil"></i></a>
              </header>
              <div class="article-content" itemprop="articleBody">
                <h1 id="流事件通知" class="article-heading"><a href="#流事件通知" class="headerlink" title="流事件通知"></a>流事件通知<a class="article-anchor" href="#流事件通知" aria-hidden="true"></a></h1><p>与音视频channel相关的事件通知</p>
<h2 id="1-创建-GLOBAL-PUBLIC-CHANNEL" class="article-heading"><a href="#1-创建-GLOBAL-PUBLIC-CHANNEL" class="headerlink" title="1 创建 GLOBAL_PUBLIC CHANNEL"></a>1 创建 GLOBAL_PUBLIC CHANNEL<a class="article-anchor" href="#1-创建-GLOBAL-PUBLIC-CHANNEL" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_CREATE_CHANNEL_GLOBAL_PUBLIC"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"roomId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>,<span class="string">"conCurrentNumber"</span>:<span class="string">"200"</span>,<span class="string">"extra"</span> : <span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>创建<font color="red">公开</font>的CHANNEL，上传者和连麦者需要登录，观众不需要登录或其他权限即可观看。<br>userId：            申请创建channel的用户ID<br>roomId：           此channel对应的聊天室ID，如果无聊天功能，则没有roomId参数<br>channelId：        流ID<br>conCurrentNumber： 此房间的人数上限<br>extra：            (可选)客户端SDK发过来的自定义数据</p>
<h2 id="2-创建-LOGIN-PUBLIC-CHANNEL" class="article-heading"><a href="#2-创建-LOGIN-PUBLIC-CHANNEL" class="headerlink" title="2 创建 LOGIN_PUBLIC CHANNEL"></a>2 创建 LOGIN_PUBLIC CHANNEL<a class="article-anchor" href="#2-创建-LOGIN-PUBLIC-CHANNEL" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_CREATE_CHANNEL_LOGIN_PUBLIC"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"roomId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>,<span class="string">"conCurrentNumber"</span>:<span class="string">"200"</span>,<span class="string">"extra"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>创建<font color="red">只对登录用户可见</font>的CHANNEL，上传者、连麦者和观众都需要登录才可以参与或观看。<br>userId：            申请创建channel的用户ID。<br>roomId：            此channel对应的聊天室ID，如果无聊天功能，则没有roomId参数。<br>conCurrentNumber： 此房间的人数上限。<br>extra：            (可选)客户端SDK发过来的自定义数据。</p>
<h2 id="3-创建-GROUP-PUBLIC-CHANNEL" class="article-heading"><a href="#3-创建-GROUP-PUBLIC-CHANNEL" class="headerlink" title="3 创建 GROUP_PUBLIC CHANNEL"></a>3 创建 GROUP_PUBLIC CHANNEL<a class="article-anchor" href="#3-创建-GROUP-PUBLIC-CHANNEL" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_CREATE_CHANNEL_GROUP_PUBLIC"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"groupId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>,<span class="string">"extra"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>创建<font color="red">仅在群内能观看</font>的CHANNEL，上传者、连麦者和观众都需要在这个群内才可参与或观看。<br>userId：     申请创建channel的用户ID。<br>groupId：    对应的群ID。<br>extra：      (可选)客户端SDK发过来的自定义数据。</p>
<h2 id="4-申请上传" class="article-heading"><a href="#4-申请上传" class="headerlink" title="4 申请上传"></a>4 申请上传<a class="article-anchor" href="#4-申请上传" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_APPLY_UPLOAD_CHANNEL"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x","data":&#123;"conCurrentNumber":"xxx","groupId(可选)":"xxxx"&#125;&#125;</span></span><br></pre></td></tr></table></figure>
<p>申请上传音视频流<br>userId:     申请上传的用户ID。</p>
<p>返回的data字段的json中，conCurrentNumber表示该channel的人数上限，如果该channelId类型为群直播（AEC_LIVE_CREATE_CHANNEL_GROUP_PUBLIC），还需要返回对应的groupId。</p>
<h2 id="5-设置上传者" class="article-heading"><a href="#5-设置上传者" class="headerlink" title="5 设置上传者"></a>5 设置上传者<a class="article-anchor" href="#5-设置上传者" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_SET_CHANNEL_UPLOADER"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>房主(主播)申请设置某用户的上传权限，如果是公开（AEC_LIVE_CREATE_CHANNEL_GLOBAL_PUBLIC）类型的房间，则用户只需要登录就能申请上传，不需要房主指定权限，如果是其他类型的房间，则需要房主主动指定用户为上传者，然后上传者才能申请上传。<br>userId:     需要设置上传权限的用户ID。</p>
<h2 id="6-取消上传权限" class="article-heading"><a href="#6-取消上传权限" class="headerlink" title="6 取消上传权限"></a>6 取消上传权限<a class="article-anchor" href="#6-取消上传权限" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_UNSET_CHANNEL_UPLOADER"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>房主(主播)申请取消某用户的上传权限。<br>userId:     需要取消上传权限的用户ID。</p>
<h2 id="7-上传者断开连接（离开）" class="article-heading"><a href="#7-上传者断开连接（离开）" class="headerlink" title="7 上传者断开连接（离开）"></a>7 上传者断开连接（离开）<a class="article-anchor" href="#7-上传者断开连接（离开）" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_UPLOADER_DISCONNECT"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>userId:     断开连接的用户ID。</p>
<h2 id="8-上传者正在上传中" class="article-heading"><a href="#8-上传者正在上传中" class="headerlink" title="8 上传者正在上传中"></a>8 上传者正在上传中<a class="article-anchor" href="#8-上传者正在上传中" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span> : <span class="string">"AEC_LIVE_UPLOADER_UPLOADING"</span>,<span class="string">"userId"</span> : <span class="string">"xxx"</span>,<span class="string">"channelId"</span> : <span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>上传者正在上传，每分钟会调用一次此事件，可根据业务逻辑决定返回值，如用户余额不足，可通过此事件终止用户继续上传。<br>userId:     正在上传的用户ID。</p>
<h2 id="9-关闭音视频流" class="article-heading"><a href="#9-关闭音视频流" class="headerlink" title="9 关闭音视频流"></a>9 关闭音视频流<a class="article-anchor" href="#9-关闭音视频流" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_CLOSE_CHANNEL"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>用户申请关闭音视频流。<br>userId:     关闭channel的用户ID。</p>
<h2 id="10-删除音视频流" class="article-heading"><a href="#10-删除音视频流" class="headerlink" title="10 删除音视频流"></a>10 删除音视频流<a class="article-anchor" href="#10-删除音视频流" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_DELETE_CHANNEL"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>&#125;</span><br><span class="line"><span class="comment">//返回 &#123;"status":"x"&#125;</span></span><br></pre></td></tr></table></figure>
<p>用户申请删除音视频流。<br>userId:     删除channel的用户ID。</p>
<h2 id="11-用户开始观看" class="article-heading"><a href="#11-用户开始观看" class="headerlink" title="11 用户开始观看"></a>11 用户开始观看<a class="article-anchor" href="#11-用户开始观看" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_USER_ONLINE"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>,<span class="string">"time"</span>:<span class="string">"xxx"</span>&#125;</span><br></pre></td></tr></table></figure>
<p>可以在此事件中检查用户余额。</p>
<h2 id="12-用户观看音视频中，每分钟调用一次" class="article-heading"><a href="#12-用户观看音视频中，每分钟调用一次" class="headerlink" title="12 用户观看音视频中，每分钟调用一次"></a>12 用户观看音视频中，每分钟调用一次<a class="article-anchor" href="#12-用户观看音视频中，每分钟调用一次" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_USER_PLAYING"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>,<span class="string">"time"</span>:<span class="string">"xxx"</span>,<span class="string">"discharge"</span>:<span class="string">"xxx"</span>&#125;</span><br></pre></td></tr></table></figure>
<p>此事件每分钟回调一次，通知该用户正在观看音视频。可以在此事件中检查用户余额。如果余额不足，可以阻止用户继续观看。</p>
<p>其中discharge表示一分钟内消耗的流量，单位为字节。</p>
<h2 id="13-用户停止观看" class="article-heading"><a href="#13-用户停止观看" class="headerlink" title="13 用户停止观看"></a>13 用户停止观看<a class="article-anchor" href="#13-用户停止观看" aria-hidden="true"></a></h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span>:<span class="string">"AEC_LIVE_USER_OFFLINE"</span>,<span class="string">"userId"</span>:<span class="string">"xxx"</span>,<span class="string">"channelId"</span>:<span class="string">"xxx"</span>,<span class="string">"time"</span>:<span class="string">"xxx"</span>,<span class="string">"discharge"</span>:<span class="string">"xxx"</span>&#125;</span><br></pre></td></tr></table></figure>
<h2 id="14-创建LOGIN-SPECIFY-CHANNEL" class="article-heading"><a href="#14-创建LOGIN-SPECIFY-CHANNEL" class="headerlink" title="14 创建LOGIN_SPECIFY CHANNEL"></a>14 创建LOGIN_SPECIFY CHANNEL<a class="article-anchor" href="#14-创建LOGIN-SPECIFY-CHANNEL" aria-hidden="true"></a></h2><p>暂未开放<br><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span> : <span class="string">"AEC_LIVE_CREATE_CHANNEL_LOGIN_SPECIFY"</span>,<span class="string">"userId"</span> : <span class="string">"xxx"</span>,<span class="string">"roomId"</span> : <span class="string">"xxx"</span>, <span class="string">"channelId"</span> : <span class="string">"xxx"</span>,<span class="string">"conCurrentNumber"</span> : <span class="string">"200"</span>,<span class="string">"extra(可选)"</span> : <span class="string">"xxxx"</span>,<span class="string">"specify"</span> : <span class="string">"xxxx"</span>&#125;</span><br></pre></td></tr></table></figure></p>
<h2 id="15-创建GROUP-SPECIFY-CHANNEL" class="article-heading"><a href="#15-创建GROUP-SPECIFY-CHANNEL" class="headerlink" title="15 创建GROUP_SPECIFY CHANNEL"></a>15 创建GROUP_SPECIFY CHANNEL<a class="article-anchor" href="#15-创建GROUP-SPECIFY-CHANNEL" aria-hidden="true"></a></h2><p>暂未开放<br><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">&#123;<span class="string">"action"</span> : <span class="string">"AEC_LIVE_CREATE_CHANNEL_GROUP_SPECIFY"</span>,<span class="string">"userId"</span> : <span class="string">"xxx"</span>,<span class="string">"groupId"</span> : <span class="string">"xxx"</span>,<span class="string">"channelId"</span> : <span class="string">"xxx"</span>,<span class="string">"extra(可选)"</span> : <span class="string">"xxxx"</span>,<span class="string">"specify"</span> : <span class="string">"xxxx"</span>&#125;</span><br></pre></td></tr></table></figure></p>
<h2 id="16-创建LIVEPROXY-GLOBAL-PUBLIC-CHANNEL" class="article-heading"><a href="#16-创建LIVEPROXY-GLOBAL-PUBLIC-CHANNEL" class="headerlink" title="16 创建LIVEPROXY_GLOBAL_PUBLIC CHANNEL"></a>16 创建LIVEPROXY_GLOBAL_PUBLIC CHANNEL<a class="article-anchor" href="#16-创建LIVEPROXY-GLOBAL-PUBLIC-CHANNEL" aria-hidden="true"></a></h2><p>创建拉流的channel<br>{“action” : “AEC_LIVE_LIVEPROXY_CREATE_CHANNEL_GLOBAL_PUBLIC”,”roomId” : “xxx”,”channelId” : “xxx”,”conCurrentNumber” : “200”,”extra(可选)” : “xxxx”}</p>
<h2 id="17-申请拉流转发" class="article-heading"><a href="#17-申请拉流转发" class="headerlink" title="17 申请拉流转发"></a>17 申请拉流转发<a class="article-anchor" href="#17-申请拉流转发" aria-hidden="true"></a></h2><pre><code class="java">{<span class="string">"action"</span> : <span class="string">"AEC_LIVE_LIVEPROXY_APPLY_UPLOAD_CHANNEL"</span>,<span class="string">"channelId"</span> : <span class="string">"xxx"</span>}
返回 {<span class="string">"status"</span>:<span class="string">"x"</span>,<span class="string">"data"</span>:{<span class="string">"conCurrentNumber"</span>:<span class="string">"xxx"</span>}}
</code></pre>
<h2 id="18-关闭拉流channel" class="article-heading"><a href="#18-关闭拉流channel" class="headerlink" title="18 关闭拉流channel"></a>18 关闭拉流channel<a class="article-anchor" href="#18-关闭拉流channel" aria-hidden="true"></a></h2><pre><code class="java">{<span class="string">"action"</span> : <span class="string">"AEC_LIVE_LIVEPROXY_CLOSE_CHANNEL"</span>,<span class="string">"channelId"</span> : <span class="string">"xxx"</span>}
返回 {<span class="string">"status"</span>:<span class="string">"x"</span>}
</code></pre>
<h2 id="19-删除拉流channel" class="article-heading"><a href="#19-删除拉流channel" class="headerlink" title="19 删除拉流channel"></a>19 删除拉流channel<a class="article-anchor" href="#19-删除拉流channel" aria-hidden="true"></a></h2><pre><code class="java">{<span class="string">"action"</span> : <span class="string">"AEC_LIVE_LIVEPROXY_DELETE_CHANNEL"</span>,<span class="string">"channelId"</span> : <span class="string">"xxx"</span>}
返回 {<span class="string">"status"</span>:<span class="string">"x"</span>}
</code></pre>

              </div>
              <footer class="article-footer">
                <time class="article-footer-updated" datetime="2020-09-06T00:27:31.361Z" itemprop="dateModified">上次更新<script type="text/javascript">document.write("："+(new Date()).toISOString().slice(0,10))</script></time>
		<a href="aec-voip.html" class="article-footer-prev" title="单聊事件通知"><i class="fa fa-chevron-left"></i><span>上一页</span></a><a href="aec-other.html" class="article-footer-next" title="其它事件通知"><span>下一页</span><i class="fa fa-chevron-right"></i></a>
              </footer>
            </div>
          </div>
          <aside id="article-toc" role="navigation">
            <div id="article-toc-inner">
              <strong class="sidebar-title">目录</strong>
              <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#流事件通知"><span class="toc-text">流事件通知</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-创建-GLOBAL-PUBLIC-CHANNEL"><span class="toc-text">1 创建 GLOBAL_PUBLIC CHANNEL</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-创建-LOGIN-PUBLIC-CHANNEL"><span class="toc-text">2 创建 LOGIN_PUBLIC CHANNEL</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-创建-GROUP-PUBLIC-CHANNEL"><span class="toc-text">3 创建 GROUP_PUBLIC CHANNEL</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#4-申请上传"><span class="toc-text">4 申请上传</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#5-设置上传者"><span class="toc-text">5 设置上传者</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#6-取消上传权限"><span class="toc-text">6 取消上传权限</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#7-上传者断开连接（离开）"><span class="toc-text">7 上传者断开连接（离开）</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8-上传者正在上传中"><span class="toc-text">8 上传者正在上传中</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#9-关闭音视频流"><span class="toc-text">9 关闭音视频流</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#10-删除音视频流"><span class="toc-text">10 删除音视频流</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#11-用户开始观看"><span class="toc-text">11 用户开始观看</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#12-用户观看音视频中，每分钟调用一次"><span class="toc-text">12 用户观看音视频中，每分钟调用一次</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#13-用户停止观看"><span class="toc-text">13 用户停止观看</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#14-创建LOGIN-SPECIFY-CHANNEL"><span class="toc-text">14 创建LOGIN_SPECIFY CHANNEL</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#15-创建GROUP-SPECIFY-CHANNEL"><span class="toc-text">15 创建GROUP_SPECIFY CHANNEL</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#16-创建LIVEPROXY-GLOBAL-PUBLIC-CHANNEL"><span class="toc-text">16 创建LIVEPROXY_GLOBAL_PUBLIC CHANNEL</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#17-申请拉流转发"><span class="toc-text">17 申请拉流转发</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#18-关闭拉流channel"><span class="toc-text">18 关闭拉流channel</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#19-删除拉流channel"><span class="toc-text">19 删除拉流channel</span></a></li></ol></li></ol>
              <a href="#" id="article-toc-top">回到顶部</a>
            </div>
          </aside>
        </div>
      </article>
      <aside id="sidebar" role="navigation">
  <div class="inner">
    <strong class="sidebar-title">开始使用</strong><a href="index.html" class="sidebar-link">概述</a><strong class="sidebar-title">Android集成</strong><a href="android-1.html" class="sidebar-link">1.嵌入SDK</a><a href="android-2.html" class="sidebar-link">2.SDK的基本说明</a><a href="android-3b.html" class="sidebar-link">3b.初始化(私有部署)</a><a href="android-4.html" class="sidebar-link">4.一对一消息</a><a href="android-5.html" class="sidebar-link">5.群组消息</a><a href="android-6.html" class="sidebar-link">6.聊天室消息</a><a href="android-7.html" class="sidebar-link">7.一对一视频通话</a><a href="android-8.html" class="sidebar-link">8.视频会议</a><a href="android-9.html" class="sidebar-link">9.互动直播</a><a href="android-10.html" class="sidebar-link">10.其它配套组件</a><a href="android-11.html" class="sidebar-link">11.超级对讲机</a><a href="android-user-list.html" class="sidebar-link">在线用户列表</a><a href="android-beauty-callback.html" class="sidebar-link">美颜接口</a><a href="android-errCode.html" class="sidebar-link">ErrorCode对照表</a><strong class="sidebar-title">iOS集成</strong><a href="ios-1.html" class="sidebar-link">1.嵌入SDK</a><a href="ios-2.html" class="sidebar-link">2.SDK的基本说明</a><a href="ios-3b.html" class="sidebar-link">3b.初始化(私有部署)</a><a href="ios-4.html" class="sidebar-link">4.一对一消息</a><a href="ios-5.html" class="sidebar-link">5.群组消息</a><a href="ios-6.html" class="sidebar-link">6.聊天室消息</a><a href="ios-7.html" class="sidebar-link">7.一对一视频通话</a><a href="ios-8.html" class="sidebar-link">8.视频会议</a><a href="ios-9.html" class="sidebar-link">9.互动直播</a><a href="ios-10.html" class="sidebar-link">10.内网P2P直连通话</a><strong class="sidebar-title">web端集成</strong><a href="web-1.html" class="sidebar-link">1.嵌入SDK</a><a href="web-2.html" class="sidebar-link">2.SDK的基本说明</a><a href="web-4.html" class="sidebar-link">4.一对一消息</a><a href="web-5.html" class="sidebar-link">5.群组消息</a><a href="web-6.html" class="sidebar-link">6.聊天室消息</a><a href="web-7.html" class="sidebar-link">7.一对一视频通话</a><a href="web-8.html" class="sidebar-link">8.视频会议</a><a href="web-9.html" class="sidebar-link">9.互动直播</a><a href="web-10.html" class="sidebar-link">10.私有部署</a><strong class="sidebar-title">Win PC端集成</strong><a href="win-1.html" class="sidebar-link">1.嵌入SDK</a><a href="win-2.html" class="sidebar-link">2.初始化</a><a href="win-3.html" class="sidebar-link">3.一对一消息</a><a href="win-4.html" class="sidebar-link">4.群组消息</a><a href="win-5.html" class="sidebar-link">5.聊天室消息</a><a href="win-6.html" class="sidebar-link">6.一对一视频通话</a><a href="win-7.html" class="sidebar-link">7.视频会议</a><a href="win-8.html" class="sidebar-link">8.互动直播</a><strong class="sidebar-title">服务端api开发</strong><a href="aec-index.html" class="sidebar-link">概述</a><a href="aec-group.html" class="sidebar-link">群事件通知</a><a href="aec-chatroom.html" class="sidebar-link">聊天室事件通知</a><a href="aec-voip.html" class="sidebar-link">单聊事件通知</a><a href="aec-channel.html" class="sidebar-link current">音视频流事件通知</a><a href="aec-other.html" class="sidebar-link">其它事件通知</a>
  </div>
</aside>
    </div>
  </div>
</div>

    <footer id="footer" class="wrapper">
  <div class="inner">
    <div id="footer-copyright">
      &copy; 2010-2020 <a href="https://starrtc.gitee.io/" target="_blank">starRTC</a><br>
    </div>
    <div id="footer-links">
      <a href="https://gitee.com/starrtc" class="footer-link" target="_blank"><i class="fa fa-github-alt"></i></a>
    </div>
  </div>
</footer>

  </div>
  <div id="mobile-nav-dimmer"></div>
  <nav id="mobile-nav">
  <div id="mobile-nav-inner">
    <ul id="mobile-nav-list">
      <a href="https://starrtc.gitee.io/" class="main-nav-link">官网</a><a href="https://blog.starRTC.com" class="main-nav-link">博客</a><a href="https://github.com/starrtc/android-demo/issues" class="main-nav-link">论坛</a><a href="/zh-cn/docs/" class="mobile-nav-link">文档</a><a href="/zh-cn/download/" class="mobile-nav-link">下载</a><a href="/zh-cn/contact/" class="mobile-nav-link">联系我们</a>
      <li class="mobile-nav-item">
        <a href="https://github.com/starrtc" class="mobile-nav-link" rel="external" target="_blank">GitHub</a>
      </li>
    </ul>
    
      <strong class="mobile-nav-title">开始使用</strong><a href="index.html" class="mobile-nav-link">概述</a><strong class="mobile-nav-title">Android集成</strong><a href="android-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="android-2.html" class="mobile-nav-link">2.SDK的基本说明</a><a href="android-3b.html" class="mobile-nav-link">3b.初始化(私有部署)</a><a href="android-4.html" class="mobile-nav-link">4.一对一消息</a><a href="android-5.html" class="mobile-nav-link">5.群组消息</a><a href="android-6.html" class="mobile-nav-link">6.聊天室消息</a><a href="android-7.html" class="mobile-nav-link">7.一对一视频通话</a><a href="android-8.html" class="mobile-nav-link">8.视频会议</a><a href="android-9.html" class="mobile-nav-link">9.互动直播</a><a href="android-10.html" class="mobile-nav-link">10.其它配套组件</a><a href="android-11.html" class="mobile-nav-link">11.超级对讲机</a><a href="android-user-list.html" class="mobile-nav-link">在线用户列表</a><a href="android-beauty-callback.html" class="mobile-nav-link">美颜接口</a><a href="android-errCode.html" class="mobile-nav-link">ErrorCode对照表</a><strong class="mobile-nav-title">iOS集成</strong><a href="ios-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="ios-2.html" class="mobile-nav-link">2.SDK的基本说明</a><a href="ios-3b.html" class="mobile-nav-link">3b.初始化(私有部署)</a><a href="ios-4.html" class="mobile-nav-link">4.一对一消息</a><a href="ios-5.html" class="mobile-nav-link">5.群组消息</a><a href="ios-6.html" class="mobile-nav-link">6.聊天室消息</a><a href="ios-7.html" class="mobile-nav-link">7.一对一视频通话</a><a href="ios-8.html" class="mobile-nav-link">8.视频会议</a><a href="ios-9.html" class="mobile-nav-link">9.互动直播</a><a href="ios-10.html" class="mobile-nav-link">10.内网P2P直连通话</a><strong class="mobile-nav-title">web端集成</strong><a href="web-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="web-2.html" class="mobile-nav-link">2.SDK的基本说明</a><a href="web-4.html" class="mobile-nav-link">4.一对一消息</a><a href="web-5.html" class="mobile-nav-link">5.群组消息</a><a href="web-6.html" class="mobile-nav-link">6.聊天室消息</a><a href="web-7.html" class="mobile-nav-link">7.一对一视频通话</a><a href="web-8.html" class="mobile-nav-link">8.视频会议</a><a href="web-9.html" class="mobile-nav-link">9.互动直播</a><a href="web-10.html" class="mobile-nav-link">10.私有部署</a><strong class="mobile-nav-title">Win PC端集成</strong><a href="win-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="win-2.html" class="mobile-nav-link">2.初始化</a><a href="win-3.html" class="mobile-nav-link">3.一对一消息</a><a href="win-4.html" class="mobile-nav-link">4.群组消息</a><a href="win-5.html" class="mobile-nav-link">5.聊天室消息</a><a href="win-6.html" class="mobile-nav-link">6.一对一视频通话</a><a href="win-7.html" class="mobile-nav-link">7.视频会议</a><a href="win-8.html" class="mobile-nav-link">8.互动直播</a><strong class="mobile-nav-title">服务端api开发</strong><a href="aec-index.html" class="mobile-nav-link">概述</a><a href="aec-group.html" class="mobile-nav-link">群事件通知</a><a href="aec-chatroom.html" class="mobile-nav-link">聊天室事件通知</a><a href="aec-voip.html" class="mobile-nav-link">单聊事件通知</a><a href="aec-channel.html" class="mobile-nav-link current">音视频流事件通知</a><a href="aec-other.html" class="mobile-nav-link">其它事件通知</a>
    
  </div>
  <div id="mobile-lang-select-wrap">
    <span id="mobile-lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></span>
    <select id="mobile-lang-select" data-canonical="docs/aec-channel.html">
      
        <option value="en">English</option>
      
        <option value="zh-cn" selected>简体中文</option>
      
    </select>
  </div>
</nav>
  <!-- Scripts -->
<!-- build:js build/js/main.js -->
<script src="/js/lang_select.js"></script>
<script src="/js/toc.js"></script>
<script src="/js/mobile_nav.js"></script>
<!-- endbuild -->
<!-- Algolia -->

<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script type="text/javascript">
document.getElementById('search-input-wrap').classList.add('on');
docsearch({
  apiKey: 'cdea7d4e47d84f6145b77e7f68689f35',
  indexName: 'hexo_zh-cn',
  inputSelector: '#search-input'
});
</script>


</body>
</html>